package com.itheima.home_work.login_system;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        // 登录系统
        System.out.println("----------系统----------");
        System.out.println("请选择登录选项：");
        System.out.println("1. 账户密码登录");
        System.out.println("2. 手机号验证码登录");
        System.out.println("3. 邮箱登录");
        System.out.println("4. 扫码登录");

        Scanner sc = new Scanner(System.in);
        String next = sc.next();
        switch (next) {
            case "1":
                new AccountLoginImpl().login();
                break;
            case "2":
                new PhoneCodeLoginImpl().login();
                break;
            case "3":
                new EmailLoginImpl().login();
                break;
            case "4":
                new QRCodeLoginImpl().login();
        }
    }
}
